<?php

namespace App\Models;


class BusinessIndex extends BaseModel
{
    protected $table = 'business_index';
    //主键ID
    protected $primaryKey = 'id';

    public function getBusinessNameOne() {
        return $this->belongsTo(BusinessType::class, 'type_id');
    }
}
